<%@ page language="java" contentType="text/html; charset=ISO-8859-15" pageEncoding="ISO-8859-15"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
<title></title>
</head>
<body>

<script type="text/javascript">
	
	
	$().ready(function() {
			// validate the comment form when it is submitted
			$("#form1").validate();
	});
	
	

</script>	


<h1>
	<bean:message key="title.new.user" />
</h1>


<html:form styleId="form1" action="/userEdit.do?action=saveNew">

<html:hidden styleId="id"  property="id" />

<div id="datosReserva" >
	<fieldset id="fSDLlibres">
		<table>
			<tr>
				<td> 
					<label class="labelFormRevistaCol1">
						<font color="red" > <bean:message key="edit.required"/>  </font> 
						<bean:message key="label.user.nom" />
					</label>
				</td>
				<td> 
					<html:text styleId="name"  property="name" size="55" maxlength="255" styleClass="required"/>
				</td>
			</tr>
			<tr>
				<td> 
					<label class="labelFormRevistaCol1">					
						<font color="red" > <bean:message key="edit.required"/>  </font> 
						<bean:message key="label.user.nick" />
					</label>
				</td>
				<td> 
					<html:text styleId="nick"  property="nick" size="55" maxlength="50" styleClass="required"/>
				</td>
			</tr>
			<tr>
				<td> 
					<label class="labelFormRevistaCol1">					
						<font color="red" > <bean:message key="edit.required"/>  </font> 
						<bean:message key="label.user.perfil" />
					</label>
				</td>
				<td> 
					<html:select property="idRolSelect" >
					<html:optionsCollection name="listaRoles" value="idRol" label="name" />
				</html:select>
				</td>
			</tr>
		</table>
	</fieldset>
</div>


<div id="divButtons">
	<html:button styleId="procesa2" property="torna" onclick="tornaListUser(this)" > <bean:message key="label.button.torna" /> </html:button>

	<html:submit styleId="procesa2" >  <bean:message key="label.button.desaCanvis" /> </html:submit>
</div>

</html:form>

</body>
</html>